using System;
using Extensions.FPMath;
using Game.Core;
using Unity.Entities;
using UnityEngine;
using UnityEngine.UI;

namespace Demo.ECSExample
{
    public class ExampleCreater : MonoBehaviour
    {
        public int MaxCount = 10000;
        public float RandomNum = 10f;
        public FP FP = FP.One;
        public FPVector2 FPVector2 = FPVector2.one;
        public FPVector3 FPVector3 = FPVector3.zero;
        
        public Slider Slider;

        private void Start()
        {
            // World world = World.DefaultGameObjectInjectionWorld;
            // EventSystem eventSystem = world.GetOrCreateSystem<EventSystem>();
            // ExampleSystem exampleSystem = world.GetOrCreateSystem<ExampleSystem>();
            // exampleSystem.Slider = Slider;
            // exampleSystem.CreateAllEntity(MaxCount, RandomNum);

            // SimulationSystemGroup systemGroup = world.GetOrCreateSystem<SimulationSystemGroup>();
            // systemGroup.AddSystemToUpdateList(eventSystem);
            // systemGroup.AddSystemToUpdateList(exampleSystem);
        }
    }
}